# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-terminal
pkgver=3.36.2
pkgrel=0
pkgdesc="GNOME terminal emulator application"
url="https://wiki.gnome.org/Apps/Terminal"
arch="all !s390x !armhf !ppc64le !mips !mips64" # limited by gnome-shell
license="GPL-2.0-or-later AND GFDL-1.3-only"
depends="dbus desktop-file-utils gsettings-desktop-schemas ncurses-terminfo-base"
makedepends="dconf-dev gnome-shell gsettings-desktop-schemas-dev nautilus-dev vte3-dev
	glib-dev intltool itstool pcre2-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-terminal/${pkgver%.*}/gnome-terminal-$pkgver.tar.xz
	fix-W_EXITCODE.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0d691452456dd495b812332f206b6f8a590f67d47a6afce582b2ff0587747c36cb1eaf249080c6a3c3540ef22a50628801165d6c17eeb1b821eea1e244f79a91  gnome-terminal-3.36.2.tar.xz
21a426f7237a07057b83114282fe302787659ec4a171e894abb3542842403bfedbc051b7b19b48866266aeabaaa8d4590fdec0f058b5255b3309f315ae2f1fa6  fix-W_EXITCODE.patch"
